home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Risc World 5
/
Risc World 5.iso
/
SOFTWARE
/
Issue5
/
PD
/
DIRSYNC
/
LegalStuff
/
gnudiff
/
Makefile
< prev
next >
Wrap
Makefile
|
2003-09-22
|
7KB
|
294 lines
CC = cc
CCflags = -c -fa -Ospace -depend !Depend -IC: -I^.lib. -throwback $(OPTS)
AS = IDEFS::Shearer.$.Programmer.Proto.AS.testAS
ASflags = -gcc -objasm -upper -throwback
Link = link
Linkflags = -o $@ -nounused -rescan
DEBUG = -DNDEBUG
OPTS = -DHAVE_CONFIG_H -DCHAR_BIT=8 -DUSING_POSIX -DVOID=void\
-DWIFEXITED(x)=(x) -DWEXITSTATUS(x)=(x)\
"-DDEFAULT_DIFF_PROGRAM=\"diff\""\
"-DDEFAULT_EDITOR_PROGRAM=\"ed\""\
"-DDIFF_PROGRAM=\"diff\""\
"-DPR_PROGRAM=\"pr\""\
"-DGNU_PACKAGE=\"GNU diffutils\"" "-DVERSION=\"2.7\""
# LIBS = ^.lib.o.gststubs ^.lib.o.libgnu ^.lib.o.mdwopt
LIBS = C:o.stubs ^.lib.o.libgnu ^.lib.o.mdwopt
DOLINK = $(link) $(linkflags) o.$@ $(LIBS)
# Pseudo targets to suppress messages and setup .c.o template system
.SILENT:
.SUFFIXES: .c .s .o
OBJS = o.version #o.freesoft
cmp_Objs = o.cmp $(OBJS)
diff_Objs = o.diff o.analyze o.dir o.io o.util o.context o.ed o.ifdef o.normal o.side $(OBJS)
diff3_Objs = o.diff3 $(OBJS)
sdiff_Objs = o.sdiff $(OBJS)
# Main target
All: cmp diff diff3 sdiff
cmp: $(cmp_Objs) $(LIBS)
$(Link) $(Linkflags) $(cmp_Objs) $(LIBS)
diff: $(diff_Objs) $(LIBS)
$(Link) $(Linkflags) $(diff_Objs) $(LIBS)
diff3: $(diff3_Objs) $(LIBS)
$(Link) $(Linkflags) $(diff3_Objs) $(LIBS)
sdiff: $(sdiff_Objs) $(LIBS)
$(Link) $(Linkflags) $(sdiff_Objs) $(LIBS)
Clean:
ifthere o.* then wipe o.* ~cfr~v
remove cmp
remove diff
remove diff3
remove sdiff
# Templates
.c.o:; $(cc) $(CCflags) $< -o $@
.s.o:; $(as) $(ASflags) $< -o $@
# Static dependencies:
o.analyze: c.analyze
o.cmp: c.cmp
o.context: c.context
o.diff: c.diff
o.diff3: c.diff3
o.dir: c.dir
o.ed: c.ed
o.ifdef: c.ifdef
o.io: c.io
o.normal: c.normal
o.sdiff: c.sdiff
o.side: c.side
o.util: c.util
o.version: c.version
# Dynamic dependencies:
o.cmp: c.cmp
o.cmp: h.system
o.cmp: ^.lib.h.config
o.cmp: ^.lib.h.system
o.cmp: C:h.kernel
o.cmp: ^.lib.h.ro_file
o.cmp: ^.lib.h.xalloc
o.cmp: ^.lib.h.closeout
o.cmp: ^.lib.h.version-etc
o.cmp: ^.lib.h.cmpbuf
o.cmp: ^.lib.h.c-stack
o.cmp: ^.lib.h.error
o.cmp: ^.lib.h.exitfail
o.cmp: ^.lib.h.freesoft
o.cmp: ^.lib.h.getopt
o.cmp: ^.lib.h.hard-locale
o.cmp: ^.lib.h.config
o.cmp: ^.lib.h.system
o.cmp: ^.lib.h.inttostr
o.cmp: ^.lib.h.config
o.cmp: ^.lib.h.system
o.cmp: ^.lib.h.xalloc
o.cmp: ^.lib.h.xstrtol
o.diff: c.diff
o.diff: ^.lib.h.config
o.diff: ^.lib.h.system
o.diff: C:h.kernel
o.diff: ^.lib.h.ro_file
o.diff: ^.lib.h.xalloc
o.diff: ^.lib.h.closeout
o.diff: ^.lib.h.version-etc
o.diff: ^.lib.h.regex
o.diff: h.diff
o.diff: h.system
o.diff: ^.lib.h.config
o.diff: ^.lib.h.system
o.diff: ^.lib.h.c-stack
o.diff: ^.lib.h.basename
o.diff: ^.lib.h.error
o.diff: ^.lib.h.exclude
o.diff: ^.lib.h.exitfail
o.diff: ^.lib.h.fnmatch
o.diff: ^.lib.h.freesoft
o.diff: ^.lib.h.getopt
o.diff: ^.lib.h.hard-locale
o.diff: ^.lib.h.config
o.diff: ^.lib.h.system
o.diff: ^.lib.h.prepargs
o.diff: ^.lib.h.quotesys
o.diff: ^.lib.h.xalloc
o.diff: ^.lib.h.posixver
o.diff: ^.lib.h.alloca
o.diff: ^.lib.h.ro_uname
o.analyze: c.analyze
o.analyze: h.diff
o.analyze: h.system
o.analyze: ^.lib.h.config
o.analyze: ^.lib.h.system
o.analyze: C:h.kernel
o.analyze: ^.lib.h.ro_file
o.analyze: ^.lib.h.xalloc
o.analyze: ^.lib.h.closeout
o.analyze: ^.lib.h.version-etc
o.analyze: ^.lib.h.cmpbuf
o.analyze: ^.lib.h.error
o.analyze: ^.lib.h.regex
o.analyze: ^.lib.h.xalloc
o.io: c.io
o.io: h.diff
o.io: h.system
o.io: ^.lib.h.config
o.io: ^.lib.h.system
o.io: C:h.kernel
o.io: ^.lib.h.ro_file
o.io: ^.lib.h.xalloc
o.io: ^.lib.h.closeout
o.io: ^.lib.h.version-etc
o.io: ^.lib.h.cmpbuf
o.io: ^.lib.h.regex
o.io: ^.lib.h.xalloc
o.util: c.util
o.util: h.diff
o.util: h.system
o.util: ^.lib.h.config
o.util: ^.lib.h.system
o.util: C:h.kernel
o.util: ^.lib.h.ro_file
o.util: ^.lib.h.xalloc
o.util: ^.lib.h.closeout
o.util: ^.lib.h.version-etc
o.util: ^.lib.h.basename
o.util: ^.lib.h.error
o.util: ^.lib.h.quotesys
o.util: ^.lib.h.regex
o.util: ^.lib.h.xalloc
o.util: C:h.kernel
o.context: c.context
o.context: h.diff
o.context: h.system
o.context: ^.lib.h.config
o.context: ^.lib.h.system
o.context: C:h.kernel
o.context: ^.lib.h.ro_file
o.context: ^.lib.h.xalloc
o.context: ^.lib.h.closeout
o.context: ^.lib.h.version-etc
o.context: ^.lib.h.inttostr
o.context: ^.lib.h.config
o.context: ^.lib.h.system
o.context: ^.lib.h.regex
o.ed: c.ed
o.ed: h.diff
o.ed: h.system
o.ed: ^.lib.h.config
o.ed: ^.lib.h.system
o.ed: C:h.kernel
o.ed: ^.lib.h.ro_file
o.ed: ^.lib.h.xalloc
o.ed: ^.lib.h.closeout
o.ed: ^.lib.h.version-etc
o.ifdef: c.ifdef
o.ifdef: h.diff
o.ifdef: h.system
o.ifdef: ^.lib.h.config
o.ifdef: ^.lib.h.system
o.ifdef: C:h.kernel
o.ifdef: ^.lib.h.ro_file
o.ifdef: ^.lib.h.xalloc
o.ifdef: ^.lib.h.closeout
o.ifdef: ^.lib.h.version-etc
o.ifdef: ^.lib.h.xalloc
o.normal: c.normal
o.normal: h.diff
o.normal: h.system
o.normal: ^.lib.h.config
o.normal: ^.lib.h.system
o.normal: C:h.kernel
o.normal: ^.lib.h.ro_file
o.normal: ^.lib.h.xalloc
o.normal: ^.lib.h.closeout
o.normal: ^.lib.h.version-etc
o.side: c.side
o.side: h.diff
o.side: h.system
o.side: ^.lib.h.config
o.side: ^.lib.h.system
o.side: C:h.kernel
o.side: ^.lib.h.ro_file
o.side: ^.lib.h.xalloc
o.side: ^.lib.h.closeout
o.side: ^.lib.h.version-etc
o.diff3: c.diff3
o.diff3: h.system
o.diff3: ^.lib.h.config
o.diff3: ^.lib.h.system
o.diff3: C:h.kernel
o.diff3: ^.lib.h.ro_file
o.diff3: ^.lib.h.xalloc
o.diff3: ^.lib.h.closeout
o.diff3: ^.lib.h.version-etc
o.diff3: ^.lib.h.c-stack
o.diff3: ^.lib.h.cmpbuf
o.diff3: ^.lib.h.error
o.diff3: ^.lib.h.exitfail
o.diff3: ^.lib.h.freesoft
o.diff3: ^.lib.h.getopt
o.diff3: ^.lib.h.inttostr
o.diff3: ^.lib.h.config
o.diff3: ^.lib.h.system
o.diff3: ^.lib.h.quotesys
o.diff3: ^.lib.h.xalloc
o.diff3: C:h.kernel
o.diff3: ^.lib.h.ro_uname
o.sdiff: c.sdiff
o.sdiff: h.system
o.sdiff: ^.lib.h.config
o.sdiff: ^.lib.h.system
o.sdiff: C:h.kernel
o.sdiff: ^.lib.h.ro_file
o.sdiff: ^.lib.h.xalloc
o.sdiff: ^.lib.h.closeout
o.sdiff: ^.lib.h.version-etc
o.sdiff: ^.lib.h.c-stack
o.sdiff: ^.lib.h.basename
o.sdiff: ^.lib.h.error
o.sdiff: ^.lib.h.exitfail
o.sdiff: ^.lib.h.freesoft
o.sdiff: ^.lib.h.getopt
o.sdiff: ^.lib.h.quotesys
o.sdiff: ^.lib.h.xalloc
o.version: c.version
o.version: ^.lib.h.config
o.version: ^.lib.h.system
o.version: C:h.kernel
o.version: ^.lib.h.ro_file
o.version: ^.lib.h.xalloc
o.version: ^.lib.h.closeout
o.version: ^.lib.h.version-etc
o.dir: c.dir
o.dir: h.diff
o.dir: h.system
o.dir: ^.lib.h.config
o.dir: ^.lib.h.system
o.dir: C:h.kernel
o.dir: ^.lib.h.ro_file
o.dir: ^.lib.h.xalloc
o.dir: ^.lib.h.closeout
o.dir: ^.lib.h.version-etc
o.dir: ^.lib.h.error
o.dir: ^.lib.h.exclude
o.dir: ^.lib.h.xalloc
o.dir: C:h.kernel
o.dir: C:h.swis
o.dir: ^.lib.h.alloca